/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.wlhy.mapper;


import com.msk.sys.mapper.CrudDao;
import com.msk.wlhy.domain.HtDriverFile;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>[]</p>
 * <p>作者：zkp</p>
 * <p>邮箱：zkp@xiangyou.com</p>
 * <p>创建时间： 2018-06-14 </p>
 * <p>类说明：驾驶员档案DAO接口 </p>
 * <p>修改记录：</p>
 */
@Repository
public interface HtDriverFileDao extends CrudDao<HtDriverFile> {
	public Map<String,Object> getDriverDetails(String userId);
	public Long findCount(HtDriverFile htDriverFile);
	public HtDriverFile getHtDriverFileByPhone(String phone);
	public HtDriverFile getHtDriverFileByIdNumber(String idNumber);
	public HtDriverFile getHtDriverFileByLonginName(String loginName);
	/**
	 * 根据运输单id获取对应的司机信息
	 * @param htDriverFile
	 * @return List<HtDriverFile>
	 * @throws
	 */
	public List<HtDriverFile> findListByTransportListId(HtDriverFile htDriverFile);
	/**
	 * 根据司机id获取绑定车辆的数量
	 * @description getCarCountByDriverId
	 * @date 2018-7-17
	 * @author chuming
	 * @param id
	 * @return
	 */
	public Long getCarCountByDriverId(String id);
	/**
	 * @description getDriverByUserId
	 * @date 2018-8-2
	 * @author chuming
	 * @param userid
	 * @return
	 */
	public HtDriverFile getDriverByUserId(String userid);

	public HtDriverFile getDriverByUser(String id);

	void updateStatus(HtDriverFile htDriverFile);

	void  updatedriverStatus(HtDriverFile htDriverFile);

	List<Map<String,Object>> findListForTransportList(HtDriverFile htDriverFile);
}